<?php
namespace Common\Model;

class CollectionModel extends AiModel {

	public function relation($uid,$pid) {
		$where['uid']=$uid;
		$where['pid']=$pid;
		$info=$this->where($where)->find();
		if($info){
          	return 1; 
		}else{
			return 0;
		}
	}

	public function toUidGetPidList($uid){
		 $where['uid']=$uid;
         $info=$this->where($where)->select();
         return $info;
	}


}